<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
        xmlns="http://www.w3.org/1999/xhtml"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        version="1.0">
    <xsl:output   method   = "html" version  = "1.0" encoding = "UTF-8" indent   = "yes" />
    <xsl:variable name="artist" select="/Music/@artist"/>
    <xsl:template match="/">
        <html>
            <head>
                <title>Music Brainz artist browse</title>
            </head>
            <body>
                <h1>Browsing: <xsl:value-of select="$artist"/></h1>
                <xsl:if test="/Music/Tracks/Track">
                    <fieldset>
                        <legend>Tracks</legend>
                        <div>
                            <ul>
                                <xsl:apply-templates select="/Music/Tracks/Track"/>
                            </ul>
                        </div>
                    </fieldset>
                </xsl:if>
            </body>
        </html>
    </xsl:template>
    <xsl:template match="Track">
        <li>
            <xsl:value-of select="@name"/>
        </li>
    </xsl:template>
</xsl:stylesheet>